The current flickr field requires three user entries: type (photo or photoset), flickr user id and photo/photoset id.
I wonder why the flickr user id (nsid) is needed, it is not used in the source code (it is only written, not read). Moreover, the nsid can be inferred from the photo/photo set id (e.g. with flickr_photo_get_info()), so the nsid is redundant information and it hurts the usability of the field.
In addition, a client of me wanted a field for Flickr photo sets and didn't want to be bothered with option between photo/photoset.
In attachment I have a patch that:
- Adds a new CCK field "flickrfield_photoset" to store references to Flickr photo sets to flickrfield.module.
- field only stores the photo set id (no nsid required).
- widget: only asks the photo set id (see attached screenshot)
- formatter options: primary photo from set in different sizes and an embedded Flickr.com flash slideshow (see attached screenshot)
Comments
Comment #1
Anonymous (not verified) commentedThis looks awesome. I'll take a look at this later today.
Best, Paul
Comment #2
Anonymous (not verified) commentedComment #3
soxofaan commentedHi Paul,
can you give some timeframe about when this patch could be committed?
I want to use it on a production site, but I'm holding it off as long as the patch is in review mode.
Or are you okay with the concept of the patch, but haven't found time to review it thoroughly enough?
If it's only about some details, I could start using it and upgrade later to the final version.
thanks for your time and work anyway.
Comment #4
bennebiest commentedHi,
I patched the flickr module using cygwin on a clean Drupal 6 install. (only CCK, Flickrfield and Flickr module installed)
After patching I got this error:
I'm on WinXP SP3 with WAMP, using Drupal 6.10 with the latest Flickr module.
I Checked ntfs permissions on the Drupal directory, SYSTEM has full control.
Is this causing the patch or could it be my mistake?
thx,
Ben
Comment #5
bcobin commentedAbsolutely magnificent! Great work - I'll come back here and post a link when it's deployed on the production site (probably by tomorrow.)
Great documentation, too. A+ all around!
One thing of note: In Firefox, photos marked "private" on Flickr don't load - which is as it should be. On Safari, all photos load, regardless of whether they're private or not. It's probably a browser issue (haven't even tried it in IE yet), but I thought I'd mention it here.
Really great work - thanks much!
Comment #6
Anonymous (not verified) commentedI couldn't get the slide show to appear.
It maybe that something had changed on the development branch since this patch was created . I'll look try again when i have some more time.
If someone could confirm this patch works against the current development branch i will get back to this as soon as possible
Best, Paul
Comment #7
soxofaan commentedI rerolled the patch against DRUPAL-6--1
and I added in the meantime some more formatters: apart from the flickr sizes, there is also the option to link to the node, link to the Flickr.com photo set page, or no link.
I also added a simple formatter that just shows the url to the Flickr.com photo set page
Comment #8
agentrickardPatch still applies, with a little offset. Works very nicely.
Comment #9
agentrickardWould love to see this for photo Groups as well...
Comment #10
ksenzeeThis is a great addition. Committed to DRUPAL-6--1. Thanks very much for the patch and the reviews.
@bcobin, I'm assuming the browser bug you mention is in the Flickr slideshow? If so, that's a problem on Flickr's end. If not, please file a new issue and let us know how to reproduce it.
Comment #11
ksenzeeComment #13
ginsonic commentedHi to all!
I am a very very new Drupal user. I want to add to my site articles with gallery on bottom of text alike https://drupal.org/files/issues/flickrfield_view.png sample.
How can I do this?
Any help will be apreciated. Thank you in advance!
Comment #14
lolandese commentedHi ginsonic. Welcome to Drupal.
Taken from the module documentation at https://drupal.org/node/2171299:
Field configuration
D7
Then:
Thanks.